﻿<%@ Page Language="C#" Inherits="System.Web.Mvc.ViewPage<Framework.Mvc.AgencyBaseViewModel>" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>经销商注册</title>
</head>
<body>
    <div>
        <%using (Html.BeginForm())
          {
        %>
        登陆名:<%: Html.TextBoxFor(m => m.Instance.Name) %><%: Html.ValidationMessageFor(m => m.Instance.Name)%>
        <br />
        <br />
        密码:<%: Html.PasswordFor(m => m.Instance.Password) %><%: Html.ValidationMessageFor(m => m.Instance.Password)%>
        <br />
        <br />
        联系人姓名:<%: Html.TextBoxFor(m => m.Contact.Name) %><%: Html.ValidationMessageFor(m => m.Contact.Name) %>
        <br />
        <br />
        地区:
        <%: Html.DropDownListFor(m => m.DistrictIdentity, this.Model.AvailableDistricts.Select(s => new SelectListItem { Text = s.Name, Value = s.Id.ToString() }))%><br />
        <br />
        电话:<%: Html.TextBoxFor(m=>m.Contact.Phone) %><%: Html.ValidationMessageFor(m => m.Contact.Phone) %><br />
        <br />
        公司名称:<%:Html.TextBoxFor(m=>m.Instance.DisplayName) %><%: Html.ValidationMessageFor(m => m.Instance.DisplayName)%>
        <br />
        <br />
        公司所在地:<%: Html.TextBoxFor(m=>m.Instance.Address) %><%: Html.ValidationMessageFor(m => m.Instance.Address)%>
        <br />
        <br />
        分类:<%=Html.DropDownListFor(m=>m.AgencyGroupIdentity, this.Model.AvailableAgencyGroups.Select(s=>new SelectListItem{ Text = s.Name, Value=s.Id.ToString()})) %><br />
        <br />
        <input type="submit" value="提交" />
        <%
          } 
        %>
    </div>
</body>
</html>
